import {axios} from '../utils/request'
import {API_MODULE} from "./_prefix";
import {MOCK} from "./_prefix";

export const getEnum = () => {
    const res = axios.get(`${API_MODULE}/hello/enum`)
    return res
}
export const downloadFile = (payload) => {
    const {fileUri} =payload
    const res =axios.get(`${API_MODULE}/download?fileUri=${fileUri}`,{
            headers:{
                'Content-Type': "multipart/form-data;"
                // 'Content-Type': "false",
                // 'Process-Data': 'false',
            }
    })
    return res
}